package com.cwb.study.springbootstudy.service.impl;

import com.cwb.study.springbootstudy.dao.UserDao;
import com.cwb.study.springbootstudy.pojo.User;
import com.cwb.study.springbootstudy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：chenwenbin
 * @date ：Created in 2019/08/12 09:43
 * @description：
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;

    @Override
    public User findUserById(Integer Id) {
        return  userDao.selectByPrimaryKey(Id);
    }
}
